<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:s="http://jboss.com/products/seam/taglib"
        xmlns:rich="http://richfaces.org/rich"
        xmlns:a4j="http://richfaces.org/a4j">
  
 			
				<h:panelGrid columns="5" >
				<a4j:commandButton action="#{p_admin.first}" value="#{messages['py.org.atom.pagination.first']}"
													reRender="detail" disabled="#{p_admin.page == 1 ? true : false}"/>
				<a4j:commandButton action="#{p_admin.previous}" value="#{messages['py.org.atom.pagination.previous']}"  
													reRender="detail" disabled="#{p_admin.page == 1 ? true : false}"/>
				<h:outputText value="#{messages['py.org.atom.pagination.page']} #{p_admin.page} / #{p_admin.pages}" 
																						rendered="#{p_admin.pages > 15}"/>
			   	<ui:repeat var="p" value="#{p_admin.pagesList}" rendered="#{p_admin.pages lt 16}">
			   		<a4j:commandLink action="#{p_admin.goToPage(p)}" value=" [#{p}] "	rendered="#{p != p_admin.page}" reRender="detail"/>
			   		<h:outputText value=" [#{p}] " rendered="#{p == p_admin.page}"/>
			   	</ui:repeat>
				<a4j:commandButton action="#{p_admin.next}" value="#{messages['py.org.atom.pagination.next']}" 
													reRender="detail" disabled="#{p_admin.page == p_admin.pages ? true : false}"/>
				<a4j:commandButton action="#{p_admin.last}" value="#{messages['py.org.atom.pagination.last']}" 
													reRender="detail" disabled="#{p_admin.page == p_admin.pages ? true : false}"/>
				</h:panelGrid>
				  		
    										
</ui:composition>